home comics writing pictures archive about

wordList.java

Language: Java
Last Modified: 2020-06-27 1:58:33 PM UTC
File Size: 8494 bytes
http://www.penguinstew.ca/example/hangman/wordList.java
import java.util.Random;
import java.util.Vector;
public class wordList {
private Vector<word> list;
public wordList() {
this.list = new Vector<word>();
list.add(new word("BABOON" , "Animals"));
list.add(new word("BEAR" , "Animals"));
list.add(new word("BULL" , "Animals"));
list.add(new word("CAMEL" , "Animals"));
list.add(new word("CAT" , "Animals"));
list.add(new word("COW" , "Animals"));
list.add(new word("CROW" , "Animals"));
list.add(new word("DOG" , "Animals"));
list.add(new word("DONKEY" , "Animals"));
list.add(new word("DUCKBILL PLATYPUS" , "Animals"));
list.add(new word("EAGLE" , "Animals"));
list.add(new word("ELEPHANT" , "Animals"));
list.add(new word("FISH" , "Animals"));
list.add(new word("FOX" , "Animals"));
list.add(new word("GIRAFFE" , "Animals"));
list.add(new word("GOAT" , "Animals"));
list.add(new word("GOLDFISH" , "Animals"));
list.add(new word("HAWK" , "Animals"));
list.add(new word("HEDGEHOG" , "Animals"));
list.add(new word("HORSE" , "Animals"));
list.add(new word("KANGAROO" , "Animals"));
list.add(new word("KITTEN" , "Animals"));
list.add(new word("MOLE" , "Animals"));
list.add(new word("MONKEY" , "Animals"));
list.add(new word("MOUSE" , "Animals"));
list.add(new word("MULE" , "Animals"));
list.add(new word("OWL" , "Animals"));
list.add(new word("PARROT" , "Animals"));
list.add(new word("PIG" , "Animals"));
list.add(new word("PINK ELEPHANT" , "Animals"));
list.add(new word("POLAR BEAR" , "Animals"));
list.add(new word("PORCUPINE" , "Animals"));
list.add(new word("POSSUM" , "Animals"));
list.add(new word("PUPPY" , "Animals"));
list.add(new word("RABBIT" , "Animals"));
list.add(new word("RACCOON" , "Animals"));
list.add(new word("RAT" , "Animals"));
list.add(new word("ROBIN" , "Animals"));
list.add(new word("SEAL" , "Animals"));
list.add(new word("SHARK" , "Animals"));
list.add(new word("SKUNK" , "Animals"));
list.add(new word("SQUIRREL" , "Animals"));
list.add(new word("STOAT" , "Animals"));
list.add(new word("WALRUS" , "Animals"));
list.add(new word("WEASEL" , "Animals"));
list.add(new word("WHALE" , "Animals"));
list.add(new word("ZEBRA" , "Animals"));
list.add(new word("BLACK" , "Colors"));
list.add(new word("BLUE" , "Colors"));
list.add(new word("BROWN" , "Colors"));
list.add(new word("BUBBLEGUM PINK" , "Colors"));
list.add(new word("COLORS" , "Colors"));
list.add(new word("CYAN" , "Colors"));
list.add(new word("FUCHSIA" , "Colors"));
list.add(new word("GOLD" , "Colors"));
list.add(new word("GREEN" , "Colors"));
list.add(new word("GREY" , "Colors"));
list.add(new word("INDIGO" , "Colors"));
list.add(new word("LAVENDER" , "Colors"));
list.add(new word("LIME GREEN" , "Colors"));
list.add(new word("MAROON" , "Colors"));
list.add(new word("OLIVE" , "Colors"));
list.add(new word("ORANGE" , "Colors"));
list.add(new word("PERIWINKLE" , "Colors"));
list.add(new word("PINK" , "Colors"));
list.add(new word("PURPLE" , "Colors"));
list.add(new word("RED" , "Colors"));
list.add(new word("ROYAL BLUE" , "Colors"));
list.add(new word("SCARLET" , "Colors"));
list.add(new word("TEAL" , "Colors"));
list.add(new word("TURQUOISE" , "Colors"));
list.add(new word("VIOLET" , "Colors"));
list.add(new word("WHITE" , "Colors"));
list.add(new word("YELLOW" , "Colors"));
list.add(new word("ACCESS" , "Computers"));
list.add(new word("ANTI-VIRUS SOFTWARE" , "Computers"));
list.add(new word("BASIC" , "Computers"));
list.add(new word("CD-ROM DRIVE" , "Computers"));
list.add(new word("CHAT" , "Computers"));
list.add(new word("COMPUTER" , "Computers"));
list.add(new word("CPU" , "Computers"));
list.add(new word("DATABASE" , "Computers"));
list.add(new word("DOS" , "Computers"));
list.add(new word("EMAIL" , "Computers"));
list.add(new word("EXCEL" , "Computers"));
list.add(new word("FIREWALL" , "Computers"));
list.add(new word("FLOPPY DRIVE" , "Computers"));
list.add(new word("FORUMS" , "Computers"));
list.add(new word("FRONTPAGE" , "Computers"));
list.add(new word("GAMES" , "Computers"));
list.add(new word("HACKER" , "Computers"));
list.add(new word("HARD DRIVE" , "Computers"));
list.add(new word("HTML" , "Computers"));
list.add(new word("ICQ" , "Computers"));
list.add(new word("INTERNET" , "Computers"));
list.add(new word("JUNK MAIL" , "Computers"));
list.add(new word("KEYBOARD" , "Computers"));
list.add(new word("LINUX" , "Computers"));
list.add(new word("LOTUS" , "Computers"));
list.add(new word("MICROSOFT" , "Computers"));
list.add(new word("MONITOR" , "Computers"));
list.add(new word("MOTHER BOARD" , "Computers"));
list.add(new word("MOUSEPAD" , "Computers"));
list.add(new word("OPERATING SYSTEM" , "Computers"));
list.add(new word("PARALLEL PORT" , "Computers"));
list.add(new word("PHP" , "Computers"));
list.add(new word("PRINTER" , "Computers"));
list.add(new word("PUBLISHING" , "Computers"));
list.add(new word("RAM" , "Computers"));
list.add(new word("SERIAL PORT" , "Computers"));
list.add(new word("SOLITARE" , "Computers"));
list.add(new word("SPEAKERS" , "Computers"));
list.add(new word("TECHNOLOGY" , "Computers"));
list.add(new word("UNIX" , "Computers"));
list.add(new word("URL" , "Computers"));
list.add(new word("VIRUS" , "Computers"));
list.add(new word("VISUAL BASIC" , "Computers"));
list.add(new word("WINDOWS" , "Computers"));
list.add(new word("WORD" , "Computers"));
list.add(new word("WORD PROCESSING" , "Computers"));
list.add(new word("WORLD WIDE WEB" , "Computers"));
list.add(new word("ZIP" , "Computers"));
list.add(new word("APPLE" , "Fruit"));
list.add(new word("BANANA" , "Fruit"));
list.add(new word("BLACKBERRY" , "Fruit"));
list.add(new word("BLUEBERRY" , "Fruit"));
list.add(new word("FRUIT" , "Fruit"));
list.add(new word("GRAPE" , "Fruit"));
list.add(new word("GRAPEFRUIT" , "Fruit"));
list.add(new word("KIWI" , "Fruit"));
list.add(new word("MANGO" , "Fruit"));
list.add(new word("ORANGE" , "Fruit"));
list.add(new word("PEACH" , "Fruit"));
list.add(new word("PEAR" , "Fruit"));
list.add(new word("RASBERRY" , "Fruit"));
list.add(new word("STRAWBERRY" , "Fruit"));
list.add(new word("TANGERINE" , "Fruit"));
list.add(new word("TOMATO" , "Fruit"));
list.add(new word("UGLY FRUIT" , "Fruit"));
list.add(new word("APRIL" , "Months"));
list.add(new word("AUGUST" , "Months"));
list.add(new word("DECEMBER" , "Months"));
list.add(new word("FEBRUARY" , "Months"));
list.add(new word("JANUARY" , "Months"));
list.add(new word("JULY" , "Months"));
list.add(new word("JUNE" , "Months"));
list.add(new word("MARCH" , "Months"));
list.add(new word("MAY" , "Months"));
list.add(new word("NOVEMBER" , "Months"));
list.add(new word("OCTOBER" , "Months"));
list.add(new word("SEPTEMBER" , "Months"));
list.add(new word("JEDI" , "Star Wars"));
list.add(new word("MOS EISLEY" , "Star Wars"));
list.add(new word("EWOKS" , "Star Wars"));
list.add(new word("TAUNTAUN" , "Star Wars"));
list.add(new word("LANDO CALRISSIAN" , "Star Wars"));
list.add(new word("SAND PEOPLE" , "Star Wars"));
list.add(new word("R2-D2" , "Star Wars"));
list.add(new word("C3-PO" , "Star Wars"));
list.add(new word("DEATH STAR" , "Star Wars"));
list.add(new word("TATOOINE" , "Star Wars"));
list.add(new word("PALPATINE" , "Star Wars"));
list.add(new word("YODA" , "Star Wars"));
list.add(new word("CHEWBACCA" , "Star Wars"));
list.add(new word("WOOKIE" , "Star Wars"));
list.add(new word("OBI-WAN KENOBI" , "Star Wars"));
list.add(new word("LIGHTSABER" , "Star Wars"));
list.add(new word("MILLENIUM FALCON" , "Star Wars"));
list.add(new word("BOBBA FETT" , "Star Wars"));
list.add(new word("JABBA THE HUTT" , "Star Wars"));
list.add(new word("HAN SOLO" , "Star Wars"));
list.add(new word("DARTH VADER" , "Star Wars"));
list.add(new word("REBEL ALLIANCE" , "Star Wars"));
}
public word newWord() {
Random rand = new Random();
return this.list.elementAt(rand.nextInt(list.size()-1));
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190